@import "./index.less";

html,
body {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    background-color: @background-color;
    -webkit-tap-highlight-color: transparent;
    font-family: PingFang SC, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/*HTML5*/

article,
aside,
dialog,
footer,
header,
section,
footer,
nav,
figure,
menu {
    margin: 0;
    padding: 0;
    display: block;
}

/*RESET
-------------------------------------------------------------- */

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
pre,
code,
form,
button,
fieldset,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset,
img {
    border: 0;
}

//address,
//caption,
//cite,
//code,
//dfn,
//em,
//strong,
//th,
//var {
//    font-style: normal;
//    font-weight: normal;
//}

ol,
ul {
    list-style: none;
}

del,
ins {
    text-decoration: none;
}

caption,
th {
    text-align: left;
}

input,
button,
textarea,
select {
    font-size: 100%;
    border: none;
    outline: none;
}

q:before,
q:after {
    content: '';
}

addr,
acronym {
    border: 0;
    font-variant: normal;
}

sup,
sub {
    vertical-align: baseline;
}

a {
    text-decoration: none;
    //color: #666;
}

/*#app {
    overflow: scroll;
}
*/

.model-open {
    overflow: hidden;
    @media (max-width: @max1) {
        position: fixed;
        width: 100%;
    }
}

.page-view, .page-modal {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: @white;
    overflow-y: hidden;
    .page-body {
        min-width: @body-min-width;
        @media (max-width: @max1) {
            min-width: 0;
        }
    }
}

.swiper-pagination-bullet {
    width: 10/@remScale !important;
    height: 10/@remScale !important;
    background: #ffffff !important;
}

//
//.ant-spin-container {
//    display: flex;
//    flex-direction: column;
//    @media (max-width: @max1) {
//        flex-flow: column-reverse;
//    }
//}
//
.ant-spin-nested-loading {
    width: 100%;
    position: absolute !important;
    top: 0;
    bottom: 0;
}

.ant-spin-container, .ant-spin-nested-loading {
    height: 100%;
}

.ant-spin-nested-loading > div > .ant-spin {
    top: 50%;
    transform: translateY(-50%);
}

.ant-spin-text {
    color: @mainColor;
    margin-top: 10/@remScale;
}

.ant-spin-lg .ant-spin-dot i {
    border-radius: 10%;
    background-color: @mainColor;
}

.ant-tooltip {
    @media (max-width: @max1) {
        display: none !important;
    }
}

.rc-pagination {
    .rc-pagination-prev, .rc-pagination-next, .rc-pagination-jump-prev, .rc-pagination-jump-next {
        border: none;
    }
    .rc-pagination-disabled {
        display: none;
    }
    .rc-pagination-item {
        font-size: 14/@remScale;
        border: none;
        a {
            color: @black-auxiliary;
        }
        &:hover {
            a {
                color: @black-three;
                border-bottom: 1/@remScale solid @black-three;
            }
        }
    }
    .rc-pagination-item-active {
        border: none;
        background-color: @white;
        a {
            color: @black-three;
            border-bottom: 1/@remScale solid @black-three;
        }
    }
    :focus {
        outline: none;
    }
}

// datetime
.rdt {
    //overflow-x: hidden;
    //overflow-y: visible;
}

.rdt {
    font-size: 14/@remScale;
}

.rdtPicker {
    left: 0;
    z-index: 10 !important;
}

.form-control {
    width: 100%;
    height: 100%;
    font-size: 14/@remScale;
    padding: 0;
    border-radius: 4/@remScale;
    &::-webkit-input-placeholder {
        color: @pinkish-darken-gray;
        font-weight: 300;
        font-size: 12/@remScale;
    }
}

.pagination-wrapper {
    margin: 20/@remScale 0;
    min-height: 28/@remScale;
    position: relative;
    .rc-pagination {
        display: flex;
        justify-content: center;
    }
    .pagination-count {
        position: absolute;
        left: 22/@remScale;
        font-size: 13/@remScale;
        color: #777;
        top: 50%;
        transform: translateY(-50%);
    }
}

.manage-loading-wrapper {
    text-align: center;
    margin-top: 30/@remScale;
}

.browser-loading-wrapper {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: @navbar-mine-color;
    color: @white;
    .loading-center {
        font-size: 14/@remScale;
    }
    .logo {
        width: 256 / @remScale;
        @media (max-width: 440px) {
            width: 50%;
        }
    }
    .loading-animate {
        width: 326/@remScale;
        height: 4/@remScale;
        border-radius: 4/@remScale;
        margin: 40/@remScale auto 0;
        position: relative;
        background: rgba(255, 255, 255, 0.2);
        overflow: hidden;
        span {
            display: block;
            width: 40%;
            height: 100%;
            border-radius: 4/@remScale;
            //background-image: linear-gradient(-45deg,
            //@light-blue-color 0%, rgba(255, 255, 255, 0.8) 10%, @light-blue-color 20%,
            //rgba(255, 255, 255, 0.8) 30%, @light-blue-color 40%, rgba(255, 255, 255, 0.8) 50%,
            //@light-blue-color 60%, rgba(255, 255, 255, 0.8) 70%, @light-blue-color 80%,
            //rgba(255, 255, 255, 0.8) 90%, @light-blue-color 100%);
            background: @light-blue-color;
            -webkit-animation: changePosition 4s linear infinite;
        }
        @media (max-width: 440px) {
            width: 256/@remScale;
        }
    }
}

@-webkit-keyframes changePosition {
    0% {
        -webkit-transform: translate(-326/@remScale);
        @media (max-width: 440px) {
            -webkit-transform: translate(-256/@remScale);
        }
    }
    50% {
        -webkit-transform: translate(0);
    }
    100% {
        -webkit-transform: translate(326/@remScale);
        @media (max-width: 440px) {
            -webkit-transform: translate(256/@remScale);
        }
    }
}